package com.example.demo.services;
import	java.util.List;

import com.example.demo.entity.Stock;
import org.springframework.stereotype.Service;

public interface OrderService {

    int delOrderDBBefore();

    int consumerFromKafaka(Stock stock,String username)throws  Exception;

    int createNewOrder(int sid,String username) throws Exception;

    int createNewOrderWithOptimisticLock(int sid,String username) throws Exception;

    int CreateNewOrderWithOptimisticLockAndRedis(int sid,String username)throws  Exception;

    int CreateNewOrderWithOptimisticLockAndRedisLimit(int sid,String username) throws Exception;

    void CreateNewOrderWithOptimisticLockAndRedisLimitKafka(int sid,String username)throws Exception;

}